using Pay.TO;
using System;
using System.Collections.Generic;

namespace Pay.Data {
	/// <summary>
	/// 商户
	/// </summary>
	public partial class Merchant {
		public Merchant() {
		}

		/// <summary>
		/// 商户id
		/// </summary>
		public long Id { get; set; }
		/// <summary>
		/// 商户号
		/// </summary>
		public string MerchantNo { get; set; }
		/// <summary>
		/// 用户唯一id，由调用接口传入的用户唯一编号，增加和修改都必须传
		/// </summary>
		public string OpenId { get; set; }
		/// <summary>
		/// 商户级别
		/// </summary>
		public long? GradeId { get; set; }
		/// <summary>
		/// 电话
		/// </summary>
		public string Mobile { get; set; }
		/// <summary>
		/// 密码
		/// </summary>
		public string Password { get; set; }
		/// <summary>
		/// 密码加盐
		/// </summary>
		public string PasswordSalt { get; set; }
		/// <summary>
		/// 姓名
		/// </summary>
		public string Name { get; set; }
		/// <summary>
		/// 头像
		/// </summary>
		public string Photo { get; set; }
		/// <summary>
		/// 创建日期
		/// </summary>
		public long CreateTime { get; set; }
		/// <summary>
		/// 审核
		/// </summary>
		public AuthStatusEnum AuthStatus { get; set; }
		/// <summary>
		/// 是否禁用
		/// </summary>
		public bool Disabled { get; set; }
		/// <summary>
		/// 最后登录日期
		/// </summary>
		public long LoginTime { get; set; }
		/// <summary>
		/// --备注
		/// </summary>
		public string Remark { get; set; }
		/// <summary>
		/// json：通道
		/// </summary>
		public string Setting { get; set; }
		/// <summary>
		/// --是否收款代付
		/// </summary>
		public bool TradeOutPay { get; set; }
		/// <summary>
		/// 是否供应商
		/// </summary>
		public bool IsSupplier { get; set; }
		/// <summary>
		/// 是否o单商户
		/// </summary>
		public bool IsOEM { get; set; }
		/// <summary>
		/// 是否平台商户
		/// </summary>
		public bool IsPlatform { get; set; }
		/// <summary>
		/// 推荐人ID
		/// </summary>
		public long ParentId { get; set; }
        /// <summary>
        /// 层阶
        /// </summary>
        public int Depth { get; set; }
		/// <summary>
		/// --O商生成的共钥
		/// </summary>
		public string PublicKey { get; set; }
		/// <summary>
		/// --认证状态 0：未确认，1：待确认 2：已确认
		/// </summary>
		public int IsCertify { get; set; }
        /// <summary>
        /// 用户角色
        /// </summary>
        public UserType? UserType { get; set; }
        /// <summary>
        /// oemid
        /// </summary>
        public long? OemId { get; set; }
        /// <summary>
        /// 供应商域名--要转到店铺表中
        /// </summary>
        public string Domain { get; set; }
        /// <summary>
        /// 手机号区号
        /// </summary>
        public string MobileCode { get; set; }
        /// <summary>
        /// 升级时间
        /// </summary>
        public DateTime? UpgradeTime { get; set; }
        public string CjMerchantNo { get; set; }
        public string BranchCode { get; set; }
    }
}